home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / MacHaskell 2.2 / command-interface-help next >
Encoding:
Text File  |  1994-09-27  |  1.3 KB  |  37 lines  |  [TEXT/ttxt]

  1. Commands used by the Y2.0 command interface:
  2.  
  3. Evaluation Commands.  These are executed in the context of the current module.
  4. := exp        Evaluate and print exp 
  5. :@ exp        Run exp of type IO()
  6. :> exp        Run exp of type IO(a), print result
  7. :: exp        Print the type of exp
  8.  
  9. Scratch pad commands.  All lines typed that do not start with : are added to
  10. the scratch pad.  Evaluation commands may refer to definitions in the pad.
  11. :clear        Discard the current pad
  12. :list         Print the current pad
  13.  
  14. Commands to load & run programs.
  15. :load file    Load a file (compilation unit) into the system
  16. :compile file Compile a file to native code and save the binary
  17. :run file     Load a file and run `main'
  18.  
  19. Commands to control the current module:
  20. :module name  Set the current module
  21. :Main         Switch to an empty module named Main
  22.  
  23. Other commands:
  24. :cd directory Set the current directory
  25. :?            Print this help file
  26. :quit         Leave Haskell
  27. :p?           Describe available printers
  28. :p= p1 p2 ... Set the printers
  29. :p+ p1 p2 ... Enable selected printers
  30. :p- p1 p2 ... Disable selected printers
  31. :o?           Describe available optimizers
  32. :o= o1 o2 ... Set the optimizers
  33. :o+ o1 o2 ... Enable selected optimizers
  34. :o- o1 o2 ... Disable selected optimizers
  35. :(fn ...)     Evaluate a Lisp expression
  36. :debug on-off Enable/disable the Lisp debugger
  37.